style.scss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744
  1. .dpot-remote {
  2. display: flex;
  3. flex-direction: column;
  4. width: 100%;
  5. max-width: 880px;
  6. min-height: 100vh;
  7. margin: 0 auto;
  8. padding: 0;
  9. background: var(--bg-page);
  10. color: var(--text-primary);
  11. font-size: 0.875rem;
  12. &__banner {
  13. display: flex;
  14. align-items: center;
  15. justify-content: center;
  16. gap: 8px;
  17. padding: 8px 16px;
  18. text-align: center;
  19. font-size: 0.875rem;
  20. font-weight: 700;
  21. color: #ffffff;
  22. letter-spacing: 0.02em;
  23. &--paused {
  24. background: #dc2626;
  25. border-bottom: 1px solid #b91c1c;
  26. }
  27. &--playing {
  28. background: #16a34a;
  29. border-bottom: 1px solid #15803d;
  30. }
  31. }
  32. &__header {
  33. display: flex;
  34. align-items: center;
  35. justify-content: space-between;
  36. padding: 12px 20px;
  37. border-bottom: 1px solid var(--border-default);
  38. background: var(--bg-head);
  39. color: var(--text-normal);
  40. }
  41. &__brand {
  42. display: flex;
  43. align-items: baseline;
  44. gap: 6px;
  45. }
  46. &__brand-logo {
  47. font-size: 1.25rem;
  48. font-weight: 800;
  49. color: #ffffff;
  50. letter-spacing: -0.02em;
  51. }
  52. &__brand-title {
  53. font-size: 1rem;
  54. font-weight: 600;
  55. color: var(--text-normal);
  56. }
  57. &__header-actions {
  58. display: flex;
  59. align-items: center;
  60. gap: 12px;
  61. }
  62. &__connection {
  63. display: inline-flex;
  64. align-items: center;
  65. gap: 5px;
  66. font-size: 0.75rem;
  67. font-weight: 600;
  68. padding: 4px 10px;
  69. border-radius: 999px;
  70. &--on {
  71. background: rgba(255, 255, 255, 0.18);
  72. color: #d4f5dd;
  73. }
  74. &--off {
  75. background: rgba(255, 255, 255, 0.18);
  76. color: #fecaca;
  77. }
  78. }
  79. &__close-btn {
  80. display: inline-flex;
  81. align-items: center;
  82. justify-content: center;
  83. width: 32px;
  84. height: 32px;
  85. border: none;
  86. background: transparent;
  87. color: var(--text-normal);
  88. font-size: 1.25rem;
  89. line-height: 1;
  90. cursor: pointer;
  91. transition: background 0.15s;
  92. &:hover {
  93. background: var(--bg-subtle);
  94. color: var(--text-primary);
  95. }
  96. }
  97. &__sub-controls {
  98. display: flex;
  99. gap: 6px;
  100. padding: 10px 16px;
  101. border-bottom: 1px solid var(--border-default);
  102. }
  103. &__sub-btn {
  104. flex: 1;
  105. display: inline-flex;
  106. align-items: center;
  107. justify-content: center;
  108. gap: 6px;
  109. padding: 8px 6px;
  110. border: 1px solid var(--border-default);
  111. border-radius: 8px;
  112. background: var(--bg-page);
  113. color: var(--text-primary);
  114. font-size: 0.75rem;
  115. font-weight: 500;
  116. cursor: pointer;
  117. transition: all 0.15s;
  118. &:hover {
  119. background: var(--bg-subtle);
  120. }
  121. &--active {
  122. border-color: #3b82f6;
  123. background: rgba(59, 130, 246, 0.1);
  124. color: #3b82f6;
  125. font-weight: 600;
  126. }
  127. &--off {
  128. border-color: #dc2626;
  129. background: rgba(220, 38, 38, 0.1);
  130. color: #dc2626;
  131. font-weight: 600;
  132. }
  133. }
  134. &__test-form {
  135. margin: 12px 16px 0;
  136. padding: 12px 14px 14px;
  137. border: 1px solid var(--border-default);
  138. border-radius: 10px;
  139. background: var(--bg-subtle);
  140. }
  141. &__test-form-legend {
  142. display: inline-flex;
  143. align-items: center;
  144. gap: 6px;
  145. padding: 0 8px;
  146. font-size: 1rem;
  147. font-weight: 700;
  148. color: var(--text-primary);
  149. }
  150. &__test-row {
  151. display: flex;
  152. gap: 8px;
  153. margin-bottom: 8px;
  154. }
  155. &__input,
  156. &__select,
  157. &__textarea {
  158. flex: 1;
  159. padding: 8px 10px;
  160. border: 1px solid var(--border-default);
  161. border-radius: 6px;
  162. background: var(--bg-page);
  163. color: var(--text-primary);
  164. font-size: 0.8125rem;
  165. outline: none;
  166. transition: border-color 0.15s;
  167. &:focus {
  168. border-color: #3b82f6;
  169. box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
  170. }
  171. &:disabled {
  172. background: var(--bg-subtle);
  173. color: var(--text-muted);
  174. cursor: not-allowed;
  175. }
  176. }
  177. &__input {
  178. &--amount {
  179. max-width: 140px;
  180. text-align: right;
  181. }
  182. }
  183. &__textarea {
  184. width: 100%;
  185. min-height: 56px;
  186. resize: vertical;
  187. font-family: inherit;
  188. margin-bottom: 8px;
  189. }
  190. &__test-form-footer {
  191. display: flex;
  192. align-items: center;
  193. justify-content: space-between;
  194. gap: 12px;
  195. flex-wrap: wrap;
  196. }
  197. &__checkbox {
  198. display: flex;
  199. align-items: center;
  200. gap: 6px;
  201. font-size: 0.75rem;
  202. color: var(--text-secondary);
  203. cursor: pointer;
  204. user-select: none;
  205. input[type='checkbox'] {
  206. width: 16px;
  207. height: 16px;
  208. cursor: pointer;
  209. accent-color: #2a8db3;
  210. }
  211. }
  212. &__test-submit {
  213. padding: 8px 18px;
  214. border: none;
  215. border-radius: 6px;
  216. background: #2a8db3;
  217. color: #ffffff;
  218. font-size: 0.8125rem;
  219. font-weight: 600;
  220. cursor: pointer;
  221. transition: background 0.15s;
  222. &:hover:not(:disabled) {
  223. background: #1f6f8f;
  224. }
  225. &:disabled {
  226. background: var(--text-muted);
  227. cursor: not-allowed;
  228. }
  229. }
  230. &__warn {
  231. display: flex;
  232. align-items: center;
  233. gap: 6px;
  234. margin: 8px 0 0;
  235. padding: 6px 10px;
  236. border-left: 3px solid #dc2626;
  237. background: rgba(220, 38, 38, 0.08);
  238. color: #dc2626;
  239. font-size: 0.75rem;
  240. font-weight: 500;
  241. }
  242. &__tabs {
  243. display: flex;
  244. gap: 4px;
  245. margin: 14px 16px 0;
  246. padding: 4px;
  247. border-radius: 10px;
  248. background: var(--bg-subtle);
  249. overflow-x: auto;
  250. }
  251. &__tab {
  252. flex: 1;
  253. min-width: 64px;
  254. display: flex;
  255. align-items: center;
  256. justify-content: center;
  257. gap: 6px;
  258. padding: 8px 6px;
  259. border: none;
  260. border-radius: 6px;
  261. background: transparent;
  262. color: var(--text-secondary);
  263. font-size: 0.75rem;
  264. font-weight: 500;
  265. cursor: pointer;
  266. transition: all 0.15s;
  267. white-space: nowrap;
  268. &:hover {
  269. background: rgba(0, 0, 0, 0.04);
  270. color: var(--text-primary);
  271. }
  272. &--active {
  273. background: var(--bg-page);
  274. color: var(--text-primary);
  275. font-weight: 700;
  276. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  277. }
  278. }
  279. &__tab-label {
  280. font-size: 0.75rem;
  281. }
  282. &__tab-count {
  283. display: inline-flex;
  284. align-items: center;
  285. justify-content: center;
  286. min-width: 20px;
  287. height: 18px;
  288. padding: 0 6px;
  289. border-radius: 999px;
  290. background: var(--text-muted);
  291. color: var(--bg-page);
  292. font-size: 0.6875rem;
  293. font-weight: 700;
  294. }
  295. &__tab--active &__tab-count {
  296. background: #2a8db3;
  297. color: #ffffff;
  298. }
  299. &__list-wrap {
  300. flex: 1;
  301. display: flex;
  302. flex-direction: column;
  303. margin: 10px 16px 0;
  304. border: 1px solid var(--border-default);
  305. border-radius: 10px;
  306. overflow: hidden;
  307. background: var(--bg-page);
  308. min-height: 280px;
  309. }
  310. &__list-header,
  311. &__row {
  312. display: grid;
  313. grid-template-columns: 1.4fr 1fr 2.2fr 0.7fr 1fr 0.5fr;
  314. gap: 8px;
  315. padding: 8px 12px;
  316. align-items: center;
  317. }
  318. &__list-header {
  319. background: var(--bg-subtle);
  320. border-bottom: 1px solid var(--border-default);
  321. font-size: 0.75rem;
  322. font-weight: 700;
  323. color: var(--text-secondary);
  324. text-transform: uppercase;
  325. letter-spacing: 0.04em;
  326. }
  327. &__list {
  328. max-height: 360px;
  329. overflow-y: auto;
  330. }
  331. &__col {
  332. font-size: 0.8125rem;
  333. overflow: hidden;
  334. text-overflow: ellipsis;
  335. white-space: nowrap;
  336. &--name {
  337. display: flex;
  338. align-items: center;
  339. gap: 6px;
  340. font-weight: 600;
  341. }
  342. &--amount {
  343. font-weight: 700;
  344. color: var(--color-danger);
  345. text-align: right;
  346. }
  347. &--msg {
  348. color: var(--text-secondary);
  349. }
  350. &--time {
  351. color: var(--text-muted);
  352. font-variant-numeric: tabular-nums;
  353. }
  354. &--status {
  355. text-align: center;
  356. }
  357. &--menu {
  358. display: flex;
  359. align-items: center;
  360. justify-content: center;
  361. }
  362. }
  363. &__test-badge {
  364. display: inline-flex;
  365. align-items: center;
  366. padding: 1px 6px;
  367. border-radius: 4px;
  368. background: #eab308;
  369. color: #ffffff;
  370. font-size: 0.625rem;
  371. font-weight: 800;
  372. letter-spacing: 0.04em;
  373. }
  374. &__row {
  375. border-bottom: 1px solid var(--border-default);
  376. border-left: 4px solid transparent;
  377. transition: background 0.1s;
  378. &:last-child {
  379. border-bottom: none;
  380. }
  381. &:hover {
  382. background: var(--bg-subtle);
  383. }
  384. &--queued {
  385. border-left-color: #94a3b8;
  386. }
  387. &--playing {
  388. border-left-color: #3b82f6;
  389. background: rgba(59, 130, 246, 0.06);
  390. }
  391. &--delivered {
  392. border-left-color: #16a34a;
  393. }
  394. &--skipped {
  395. border-left-color: #eab308;
  396. }
  397. &--ignored {
  398. border-left-color: #64748b;
  399. opacity: 0.65;
  400. }
  401. &--failed {
  402. border-left-color: #dc2626;
  403. background: rgba(220, 38, 38, 0.04);
  404. }
  405. }
  406. &__status-badge {
  407. display: inline-flex;
  408. align-items: center;
  409. justify-content: center;
  410. padding: 2px 8px;
  411. border-radius: 999px;
  412. font-size: 0.6875rem;
  413. font-weight: 700;
  414. &--queued {
  415. background: rgba(148, 163, 184, 0.18);
  416. color: #475569;
  417. }
  418. &--playing {
  419. background: rgba(124, 58, 237, 0.18);
  420. color: #7c3aed;
  421. padding: 0;
  422. }
  423. &--delivered {
  424. background: rgba(22, 163, 74, 0.18);
  425. color: #16a34a;
  426. }
  427. &--skipped {
  428. background: rgba(234, 179, 8, 0.18);
  429. color: #ca8a04;
  430. }
  431. &--ignored {
  432. background: rgba(100, 116, 139, 0.18);
  433. color: #64748b;
  434. }
  435. &--failed {
  436. background: rgba(220, 38, 38, 0.18);
  437. color: #dc2626;
  438. }
  439. }
  440. &__empty {
  441. padding: 40px 20px;
  442. text-align: center;
  443. color: var(--text-muted);
  444. font-size: 0.875rem;
  445. }
  446. &__menu-btn {
  447. display: inline-flex;
  448. align-items: center;
  449. justify-content: center;
  450. width: 26px;
  451. height: 26px;
  452. border: 1px solid var(--border-default);
  453. border-radius: 6px;
  454. background: transparent;
  455. color: var(--text-primary);
  456. font-size: 1rem;
  457. line-height: 1;
  458. cursor: pointer;
  459. transition: background 0.15s;
  460. &:hover {
  461. background: var(--bg-subtle);
  462. }
  463. }
  464. // reorder ↑/↓ 버튼 (일시정지 시에만 노출)
  465. &__col--reorder {
  466. display: inline-flex;
  467. flex-direction: column;
  468. align-items: center;
  469. justify-content: center;
  470. gap: 2px;
  471. width: 32px;
  472. flex-shrink: 0;
  473. }
  474. &__reorder-btn {
  475. display: inline-flex;
  476. align-items: center;
  477. justify-content: center;
  478. width: 22px;
  479. height: 16px;
  480. padding: 0;
  481. border: 1px solid var(--border-default);
  482. border-radius: 4px;
  483. background: transparent;
  484. color: var(--text-primary);
  485. cursor: pointer;
  486. transition: background 0.15s, opacity 0.15s;
  487. &:hover:not(:disabled) {
  488. background: var(--bg-subtle);
  489. }
  490. &:disabled {
  491. opacity: 0.3;
  492. cursor: not-allowed;
  493. }
  494. }
  495. &__menu-dropdown {
  496. z-index: 9999;
  497. min-width: 130px;
  498. padding: 4px;
  499. border: 1px solid var(--border-default);
  500. border-radius: 8px;
  501. background: var(--bg-page);
  502. box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  503. }
  504. &__menu-item {
  505. display: block;
  506. width: 100%;
  507. padding: 7px 10px;
  508. border: none;
  509. border-radius: 4px;
  510. background: transparent;
  511. color: var(--text-primary);
  512. font-size: 0.8125rem;
  513. font-weight: 500;
  514. text-align: left;
  515. cursor: pointer;
  516. transition: background 0.1s;
  517. &:hover {
  518. background: var(--bg-subtle);
  519. }
  520. &--danger {
  521. color: #dc2626;
  522. &:hover {
  523. background: rgba(220, 38, 38, 0.08);
  524. }
  525. }
  526. }
  527. &__main-controls {
  528. display: grid;
  529. grid-template-columns: 1fr 1fr 1fr;
  530. gap: 8px;
  531. padding: 12px 16px 16px;
  532. margin-top: auto;
  533. border-top: 1px solid var(--border-default);
  534. }
  535. &__main-btn {
  536. display: inline-flex;
  537. align-items: center;
  538. justify-content: center;
  539. gap: 8px;
  540. padding: 12px 8px;
  541. border: 1px solid var(--border-default);
  542. border-radius: 10px;
  543. background: var(--bg-page);
  544. color: var(--text-primary);
  545. font-size: 0.875rem;
  546. font-weight: 700;
  547. cursor: pointer;
  548. transition: all 0.15s;
  549. &:hover:not(:disabled) {
  550. background: var(--bg-subtle);
  551. }
  552. &:disabled {
  553. cursor: default;
  554. opacity: 0.6;
  555. }
  556. &--pause {
  557. &.dpot-remote__main-btn--active {
  558. background: #dc2626;
  559. border-color: #b91c1c;
  560. color: #ffffff;
  561. opacity: 1;
  562. }
  563. }
  564. &--skip {
  565. &:hover:not(:disabled) {
  566. background: var(--bg-subtle);
  567. border-color: #2a8db3;
  568. color: #2a8db3;
  569. }
  570. }
  571. &--play {
  572. &.dpot-remote__main-btn--active {
  573. background: #16a34a;
  574. border-color: #15803d;
  575. color: #ffffff;
  576. opacity: 1;
  577. // 재생 중 인디케이터 — Play 아이콘이 우측 슬라이드+페이드 반복
  578. svg {
  579. animation: dpot-remote-play-pulse 1.2s ease-in-out infinite;
  580. }
  581. }
  582. }
  583. }
  584. }
  585. @keyframes dpot-remote-play-pulse {
  586. 0%, 100% {
  587. transform: translateX(0);
  588. opacity: 1;
  589. }
  590. 50% {
  591. transform: translateX(4px);
  592. opacity: 0.55;
  593. }
  594. }
  595. // ── 타이머 ring (재생 중 카운트다운) ─────────────────
  596. .dpot-remote__timer-ring {
  597. position: relative;
  598. display: inline-flex;
  599. align-items: center;
  600. justify-content: center;
  601. width: 30px;
  602. height: 30px;
  603. svg {
  604. position: absolute;
  605. inset: 0;
  606. }
  607. }
  608. .dpot-remote__timer-num {
  609. position: relative;
  610. font-size: 0.6875rem;
  611. font-weight: 700;
  612. color: #7c3aed;
  613. font-variant-numeric: tabular-nums;
  614. }
  615. @media (max-width: 767px) {
  616. .dpot-remote {
  617. max-width: 100%;
  618. font-size: 0.8125rem;
  619. &__list-header,
  620. &__row {
  621. grid-template-columns: 1.2fr 0.9fr 1.6fr 0.6fr 0.9fr 0.5fr;
  622. gap: 4px;
  623. padding: 6px 8px;
  624. }
  625. &__col {
  626. font-size: 0.75rem;
  627. }
  628. &__test-row {
  629. flex-direction: column;
  630. }
  631. &__input--amount {
  632. max-width: 100%;
  633. }
  634. &__tabs {
  635. margin: 10px 12px 0;
  636. }
  637. &__list-wrap {
  638. margin: 8px 12px 0;
  639. }
  640. &__main-controls {
  641. padding: 10px 12px 14px;
  642. }
  643. }
  644. }